import request from '@/utils/request'

// 查询打卡类别列表
export function checkTypeAll(query) {
  return request({
    url: '/system/aCheck/checkTypeAll',
    method: 'get',
    params: query
  })
}

// 查询打卡类别列表
export function listACheck(query) {
  return request({
    url: '/system/aCheck/list',
    method: 'get',
    params: query
  })
}

// 查询打卡类别详细
export function getACheck(id) {
  return request({
    url: '/system/aCheck/' + id,
    method: 'get'
  })
}

// 新增打卡类别
export function addACheck(data) {
  return request({
    url: '/system/aCheck',
    method: 'post',
    data: data
  })
}

// 修改打卡类别
export function updateACheck(data) {
  return request({
    url: '/system/aCheck',
    method: 'put',
    data: data
  })
}

// 删除打卡类别
export function delACheck(id) {
  return request({
    url: '/system/aCheck/' + id,
    method: 'delete'
  })
}
